package nsga.moTSP;

import java.util.Properties;

import moTSP.TownsMap;
import moTSP.TspGeneticOperations;
import moTSP.TspGenotype;
import nsga.NsgaRunner;
import nsga.Nsga2Algorithm.Nsga2Parameters;

import common.GeneticOperations;

public class NsgaTspRunner extends NsgaRunner<TspGenotype> {

    @Override
    public GeneticOperations<TspGenotype> getGeneticOperations(
            Properties properties, Nsga2Parameters params) {
        
        double inverover_p = Double.parseDouble(properties.getProperty("inverover_p"));
        TownsMap cm = new TownsMap(params.inputFile);
        
        TspGeneticOperations go = new TspGeneticOperations(cm,inverover_p);
        return go;
    }
      
    public static void main(String[] args) {
        
        new NsgaTspRunner().start("TSP", args);
    }
}